package com.zwb.demo.easyweb.modules.config.entity;

import com.zwb.demo.easyweb.common.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 表单控件表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "t_form_component")
@Entity
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
public class FormComponentPO extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    @Column(name = "id", insertable = false, nullable = false, length = 32)
    private String id;

    /**
     * 标签
     */
    @Column(name = "label", nullable = false)
    private String label;

    /**
     * 值
     */
    @Column(name = "value", nullable = false)
    private String value;

    /**
     * ui组件
     */
    @Column(name = "ui_component")
    private String uiComponent;

    /**
     * 引入路径
     */
    @Column(name = "import_url")
    private String importUrl;

    /**
     * 排序
     */
    @Column(name = "sort")
    private Integer sort;

    
}